<?php

/**
 # com_jvframwork - JV Framework
 # @version		1.5.x
 # ------------------------------------------------------------------------
 # author    Open Source Code Solutions Co
 # copyright Copyright (C) 2011 joomlavi.com. All Rights Reserved.
 # @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL or later.
 # Websites: http://www.joomlavi.com
 # Technical Support:  http://www.joomlavi.com/my-tickets.html
-------------------------------------------------------------------------*/
//no direct access
defined( '_JEXEC' ) or die( 'Retricted Access' );
$pKey = $this->PKEY;
?>

<form action="<?php echo $this->FORM_LINK ?>" method="post" name="adminForm" id="adminForm" class="form-validate">
    <div class="paramlist">	   
		<div class="jv-slider">
			<span class="global"><?php echo JText::_('GLOBAL SETTING') ?></span>
		</div>
		<div class="jv-slider-content">
			<div class="paramlist-sub clearfix">
                <div class="jv-slider-sub">
					<span><span><span><?php echo JText::_('COM_JVFRAMEWORK_THEME_DETAILS') ?></span></span></span>
				</div>
				<div class="jv-slider-content-sub">
                    <div class="paramrow">
    					<label for="themename"><?php echo JText::_('Theme name:') ?></label>
                        <input name="themename" id="themename" <?php if(count(explode('|', $this->data->theme)) == 1) echo 'disabled="disabled" '; ?> value="<?php echo end(explode('|', $this->data->theme)); ?>" size="40" />
                    </div>
                    <div class="paramrow">
    					<label for="theme"><?php echo JText::_('Theme') ?></label>
                        <?php
                        if(count(explode('|', $this->data->theme)) > 1){
                            echo $this->THEMELIST;
                        } else {?>
                            <input name="theme" readonly="true" id="themename" value="<?php echo current(explode('|', $this->data->theme)); ?>" size="40" />
                        <?php } ?>                        
                    </div>
                    <div class="paramrow">
                        <label for="theme"><?php echo JText::_('ID') ?></label>
                        <input type="text"  readonly="true" name="<?php echo $pKey ?>" value="<?php echo $this->data->$pKey; ?>" />
                    </div>
				</div>
                
                <div class="jv-slider-sub">
					<span><span><span><?php echo JText::_('COM_JVFRAMEWORK_THEME_LOGO') ?></span></span></span>
				</div>
				<div class="jv-slider-content-sub">
					<?php echo $this->GLOBAL->render('params','LOGO'); ?>
				</div>
				
				<div class="jv-slider-sub">
					<span><span><span><?php echo JText::_('COM_JVFRAMEWORK_THEME_DIRECTION') ?></span></span></span>   
				</div>                
				<div class="jv-slider-content-sub">
					<?php echo $this->GLOBAL->render('params','DIRECTION'); ?>
				</div> 
				
				<div class="jv-slider-sub">
					<span><span><span><?php echo JText::_('COM_JVFRAMEWORK_THEME_FOOTER') ?></span></span></span>    
				</div>
				<div class="jv-slider-content-sub">
					<?php echo $this->GLOBAL->render('params','FOOTER'); ?>
				</div>
				
				<div class="jv-slider-sub">
					<span><span><span><?php echo JText::_('COM_JVFRAMEWORK_THEME_SEO') ?></span></span></span>    
				</div>         
				<div class="jv-slider-content-sub">
					<?php echo $this->GLOBAL->render('params','SEO'); ?>
				</div> 
				 <div class="jv-slider-sub">
					<span><span><span><?php echo JText::_('COM_JVFRAMEWORK_THEME_USERTOOL') ?></span></span></span>    
				</div>                
				<div class="jv-slider-content-sub">
					<?php echo $this->GLOBAL->render('params','USERTOOL'); ?>
				</div> 
				
				<div class="jv-slider-sub">
					<span><span><span><?php echo JText::_('COM_JVFRAMEWORK_THEME_PERFORM') ?></span></span></span>    
				</div>                
				<div class="jv-slider-content-sub">
					<?php echo $this->GLOBAL->render('params','PERFORM'); ?>
				</div> 
			</div>
		</div>
		<div class="jv-slider">
			<span class="layoutsetting"><?php echo JText::_('COM_JVFRAMEWORK_THEME_LAYOUT_SETTING') ?></span>    
		</div>        
		<div class="jv-slider-content">
            <div class="paramlist-sub clearfix">
					<div class="jv-slider-sub ">
						<span><span><span><?php echo JText::_('COM_JVFRAMEWORK_THEME_LAYOUT') ?></span></span></span>   
					</div>
				<div class="jv-slider-content-sub">
					<?php echo $this->LAYOUT->render('params','LAYOUT'); ?>
                    <?php 
                    if($this->data->home != 1){
                        echo $this->LAYOUT->render('params','LAYOUTASSIGN');    
                    } else {?>
                    <div class="paramrow">                                
                        <label class="hasTip" title="<?php echo JText::_('COM_JVFRAMEWORK_THEME_CANNOT_ASSIGN'); ?>" for="paramsmenuassign" id="paramsmenuassign-lbl">Assign theme</label>
                        <span class="assign"><?php echo JText::_('COM_JVFRAMEWORK_THEME_CANNOT_ASSIGN'); ?></span>
                    </div>
                    <?php } ?>
				</div>
            </div>
            <div class="paramlist-sub clearfix">
				<div class="jv-slider-sub">
					<span><span><span><?php echo JText::_('COM_JVFRAMEWORK_THEME_LAYOUT_MANAGER') ?></span> </span></span>   
				</div>
			    <div class="jv-slider-content-sub jv-slider-content-sub1 clearfix">  
                    <div class="layoutmanager">
                        <?php echo $this->LAYOUT->render('params','LAYOUT_MANAGER'); ?>
                    </div>
                    <div class="layouttype">
                         <?php echo $this->LAYOUT->render('params','LAYOUT_TYPE'); ?>
                    </div>
                   
                </div>
            </div>
        </div>
		<div class="jv-slider">
			<span class="menusystem"><?php echo JText::_('COM_JVFRAMEWORK_THEME_MENU_SYSTEM') ?></span>    
		</div>
		<div class="jv-slider-content">
			<div class="paramlist-sub clearfix">
				<div class="jv-slider-sub">
					<span><span><span><?php echo JText::_('COM_JVFRAMEWORK_THEME_MENU_HORIZONTAL') ?></span></span></span>    
				</div>
				<div class="jv-slider-content-sub">
					<?php echo $this->MENU->render('params','HORIZONTAL'); ?>
				</div>
				
				<div class="jv-slider-sub">
					<span><span><span><?php echo JText::_('COM_JVFRAMEWORK_THEME_MENU_VERTICAL') ?></span></span></span>    
				</div>                
				<div class="jv-slider-content-sub">
					<?php echo $this->MENU->render('params','VERTICAL'); ?>
				</div> 
				
				<div class="jv-slider-sub">
					<span><span><span><?php echo JText::_('COM_JVFRAMEWORK_THEME_MENU_ACCORDION') ?></span></span></span>    
				</div>
				<div class="jv-slider-content-sub">
					<?php echo $this->MENU->render('params','ACCORDION'); ?>
				</div>
			</div>
		</div>    			
		<div class="jv-slider">
			<span class="gfont"><?php echo JText::_('COM_JVFRAMEWORK_THEME_GOOGLE_FONT') ?></span>    
		</div>
		<div class="jv-slider-content">
			<div class="paramlist-sub clearfix">
				<div class="jv-slider-sub">
					<span><span><span><?php echo JText::_('COM_JVFRAMEWORK_THEME_GOOGLE_FONT') ?></span></span></span>    
				</div>
				<div class="jv-slider-content-sub">
                    <button type='button' style="float: right; margin: 0 10px 0;" onclick='submitbutton("getGoogleFont"); return false;'>Update font list</button>
					<?php echo $this->GFONT->render(); ?>
				</div>
			</div>
		</div>	
        
        <div class="jv-slider">
			<span class="mobile"><?php echo JText::_('COM_JVFRAMEWORK_THEME_MOBILES') ?></span>    
		</div>
		<div class="jv-slider-content">
			<div class="paramlist-sub clearfix">
				<div class="jv-slider-sub">
					<span><span><span><?php echo JText::_('COM_JVFRAMEWORK_THEME_MOBILE') ?></span></span></span>    
				</div>
				<div class="jv-slider-content-sub">
					<?php echo $this->MOBILE->render('params','MOBILE'); ?>
				</div>
                <div class="jv-slider-sub">
					<span><span><span><?php echo JText::_('COM_JVFRAMEWORK_THEME_IPHONE') ?></span></span></span>    
				</div>
				<div class="jv-slider-content-sub">
					<?php echo $this->MOBILE->render('params','IPHONE'); ?>
				</div>
                <div class="jv-slider-sub">
					<span><span><span><?php echo JText::_('COM_JVFRAMEWORK_THEME_ANDROID') ?></span></span></span>    
				</div>
				<div class="jv-slider-content-sub">
					<?php echo $this->MOBILE->render('params','ANDROID'); ?>
				</div>                
			</div>
		</div>
        
        <div class="jv-slider">
			<span class="theme_edit"><?php echo JText::_('COM_JVFRAMEWORK_THEME_THEME_EDITOR') ?></span>    
		</div>
		<div class="jv-slider-content">
			<div class="paramlist-sub clearfix themeEditor">
				<div class="jv-slider-sub">
					<span><span><span><?php echo JText::_('COM_JVFRAMEWORK_THEME_THEME_EDITOR') ?></span></span></span>    
				</div>
				<div class="jv-slider-content-sub">
				    <div class="editor">
                        <div class="inner">
                            <div class="editor-toolbar">
                                <?php echo $this->THEMEFILE ?>                                
                                <button type="button" name="editLayout" onclick="jvAdmin.saveLayoutFile(); return false;"><?php echo JText::_('COM_JVFRAMEWORK_THEME_THEME_EDITOR_SAVE') ?></button>                                
                                <span id="editor-status"></span>
                            </div>
                            <div class="clearfix">
                                <textarea id='codeEditor'></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="info">
                        <div class="inner">
                            
                        </div>
                    </div>
				</div>
                
			</div>
		</div>
    </div>
    <input type="hidden" name="layoutname" id="layoutname" value=""/>	
	<input type="hidden" name="cachetype" id="cachetype" value=""/>	
	<input type="hidden" name="option" value="<?php echo $this->OPTION ?>" />
	<input type="hidden" name="c" value="" />
	<input type="hidden" name="task" value="" />
	<?php echo $this->TOKEN; ?>     
</form>